package com.ssx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.core.metadata.IPage;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author ssx
 * @since 2020-10-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Employees  {

//    private static final long serialVersionUID = 1L;

    @TableId(value = "empid", type = IdType.AUTO)
    private Integer empid;

    private String username;

    private String password;

    private String tel;

    private String name;

    private String email;

    @TableField(exist = false)
    private Role role;

    public Employees(Integer empid, String username, String password, String tel, String name, String email, Role role) {
        this.empid = empid;
        this.username = username;
        this.password = password;
        this.tel = tel;
        this.name = name;
        this.email = email;
        this.role = role;
    }

    public Employees() { }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }
}
